-- GENERATED SPELL FOR [Apex] --


function spell0_19940(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_19940', 10346, 1)
end

function Sorts_19940(pUnit, Event)
local choix_sorts_19940 = math.random(0, 0)
if choix_sorts_19940 == 0 then
pUnit:RegisterEvent('spell0_19940', 1, 1)
end
end

function mob19940_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19940', math.random(1500, 3000), 1)
end

function mob19940_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19940_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19940_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19940, 1, 'mob19940_Action')
RegisterUnitEvent(19940, 2, 'mob19940_Leave')
RegisterUnitEvent(19940, 3, 'mob19940_Kill')
RegisterUnitEvent(19940, 4, 'mob19940_Die')
